package com.ruoyi.commerce.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.Translation;
import com.ruoyi.common.constant.TransConstant;
import lombok.Data;



/**
 * 商品视图对象 commerce_products
 *
 * @author ruoyi
 * @date 2023-12-31
 */
@Data
@ExcelIgnoreUnannotated
public class CommerceProductsVo {

    private static final long serialVersionUID = 1L;

    /**
     * 商品ID
     */
    @ExcelProperty(value = "商品ID")
    private Long productId;

    /**
     * 商品名称
     */
    @ExcelProperty(value = "商品名称")
    private String productName;

    /**
     * 商品描述
     */
    @ExcelProperty(value = "商品描述")
    private String productDescription;

    /**
     * 商品价格
     */
    @ExcelProperty(value = "商品价格")
    private String productPrice;

    /**
     * 商品原始价格
     */
    @ExcelProperty(value = "商品原始价格")
    private String productOriginalPrice;

    /**
     * 商品图片
     */
    @ExcelProperty(value = "商品图片")
    private String productImage;

    /**
     * 商品图片
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL,mapper = "productImage")
    private String productImagePreview;

    /**
     * 商品状态
     */
    @ExcelProperty(value = "商品状态")
    private String status;
}
